#include <stdlib.h>
#include <stdio.h>
#include <string.h>
namespace SV_TAINTED_INJECTION {


	int main() {
		char buf[1024];
		char* s;
		char command[2048];

		printf("Enter Name to look:\n");
		fgets(buf, 1023, stdin);
		buf[1023] = '\0';
		s = strchr(buf, '\n');
		if (s != NULL) {
			*s = '\0';
		}
		strcpy(command, "grep \"");
		strcat(command, buf);
		strcat(command, "\" phone_book");
		system(command);
		return 0;
	}
}